package com.eastfair.home.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.eastfair.boot.request.PageParams;
import com.eastfair.venueservice.dto.ServiceInventoryCheckDTO;
import com.eastfair.venueservice.dto.ServiceInventoryCheckQuery;
import com.eastfair.venueservice.vo.ServiceInventoryCheckVO;

/**
 * @Author suolong
 * @Date 2022/8/9 9:44
 */

public interface HomeServiceInventoryCheckService {

    /**
     * 新增盘点记录
     *
     * @param serviceInventoryCheckDTO
     * @return
     */
    Boolean saveInventoryCheck(ServiceInventoryCheckDTO serviceInventoryCheckDTO);

    /**
     * 查询盘点记录
     * @param serviceInventoryCheckQuery serviceInventoryCheckQuery
     * @return Page
     */
    Page<ServiceInventoryCheckVO> queryCheckList(PageParams<ServiceInventoryCheckQuery> serviceInventoryCheckQuery);

    /**
     * 查询盘点记录明细
     * @param serviceInventoryCheckQuery
     * @return
     */
    ServiceInventoryCheckVO queryCheckDetailList(ServiceInventoryCheckQuery serviceInventoryCheckQuery);

    /**
     * 修改盘点记录
     * @param serviceInventoryCheckDTO
     * @return
     */
    Boolean updateInventoryCheck(ServiceInventoryCheckDTO serviceInventoryCheckDTO);

    /**
     * 查询新的盘点单号
     * @return
     */
    String queryNewCheckNo();

    /**
     * 删除盘点记录
     * @param serviceInventoryCheckDTO
     * @return
     */
    Boolean delInventoryCheck(ServiceInventoryCheckDTO serviceInventoryCheckDTO);
}
